package org.jix.gbook.note.biz.rpc;

import jakarta.annotation.Resource;
import org.jix.gbook.distributed.id.generator.api.DistributedIdGeneratorFeignApi;
import org.springframework.stereotype.Component;

/**
 * @author stark
 * @date 2025/8/30 15:07
 * @description 用户服务
 **/
@Component
public class DistributedIdGeneratorRpcService {

    @Resource
    private DistributedIdGeneratorFeignApi distributedIdGeneratorFeignApi;

    /**
     * 生成雪花算法ID
     * @return
     */
    public String getSnowflakeId(){
        return distributedIdGeneratorFeignApi.getSnowflakeId("test");
    }
}
